package org.mx.dal.hibernate.entity;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import org.mx.dal.entity.BaseDict;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 基于Hibernate实现的基础字典实体
 *
 * @author : john.peng date : 2017/10/6
 * @see BaseEntity
 * @see BaseDict
 */
@MappedSuperclass
@ToString(callSuper = true)
public class BaseDictEntity extends BaseEntity implements BaseDict {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1909927007169532376L;
	@Column(name = "CODE", nullable = false, unique = true, length = 30)
    private @Getter @Setter String code;
    @Column(name = "NAME", length = 100)
    private @Getter @Setter String name;
    @Column(name = "DESCRIPTION")
    private @Getter @Setter String desc;
}
